export function reducer(state, action) {
  switch (action.type) {
    case "addCount": {
      return {
        ...state,
        count: state.count + 1,
      };
    }
    case "addNum": {
      return {
        ...state,
        num: state.num + 1,
      };
    }
    default:
      return state;
  }
}

export const initialValue = { count: 0, num: 0 };
